
$(document).ready(function() {
var FormtdDate = '';
 var MinimumDate = '';
      $('.startDate').change(function() {
    var currntDate = this.value;
    var characters = currntDate.split('/');
    var first = characters[0];
    var second = characters[1];
    var third = characters[2];
    FormtdDate = third+'/'+second+'/'+first;
    callEndDate(FormtdDate);
   
});
       function callEndDate(MinimumDate){
             $(".max").datepicker("destroy");
            MinimumDate = new Date(MinimumDate)
                $(".max").datepicker({
                    changeYear: true,
                    dateFormat: 'dd/mm/yy',
                    minDate:  MinimumDate,
                    maxDate: new Date('2013/04/10')
});
                 }
               
$(".startDate").datepicker({
    changeYear: true,
    dateFormat: 'dd/mm/yy',
    minDate: new Date()
});
});
     